package com.cloudptt.api.product.func.sys.fsm;

public class SysConst
{
//	public static final int Reg_Timeout_SIPSTATR                 = 50;
//	public static final int Reg_Timeout_Login                    = 5;

//	public static final int Status_Begin                    = -1;
//	public static final int Status_Suc                     = 0;
//	public static final int Status_Failed                  = 1;
//	public static final int Status_Timeout                 = 2;
//	public static final int Status_AuthTimeout             = 3;

//	public static final int LoginType_Login                = 1;
//	public static final int LoginType_Auto                 = 2;

	public static final String SysMsg_NAT_KEEPALIVE_ERR = "nat_keepalive_err";
	public static final String SysMsg_KICKOFF = "kickoff";

	public static final int SysAction_Begin                    	= 50;
	public static final int SysAction_HttpGet 					= SysAction_Begin + 1;
	protected static final int SysAction_HttpAuth               = SysAction_Begin + 2;
	protected static final int SysAction_SipAuth                = SysAction_Begin + 3;
	public static final int SysAction_Auth                     	= SysAction_Begin + 5;
	public static final int SysAction_Clear_Init                = SysAction_Begin + 6;
	public static final int SysAction_Publish	    			= SysAction_Begin + 7;
	public static final int SysAction_Logout	    			= SysAction_Begin + 8;

	public static final int SysMsg_Begin                    	= 100;
	public static final int SysMsg_Svr_Stop              		= SysAction_Begin + 21;
	public static final int SysMsg_Svr_Start             		= SysAction_Begin + 22;

	public static final int SysMsg_Http_Get_Suc 				= SysAction_Begin + 1;
	public static final int SysMsg_Http_Get_Failed 				= SysAction_Begin + 2;
	public static final int SysMsg_Http_Get_Timeout 			= SysAction_Begin + 3;

	public static final int SysMsg_Http_Auth_Suc         		= SysAction_Begin + 4;
	public static final int SysMsg_Http_Auth_Failed      		= SysAction_Begin + 5;
	public static final int SysMsg_Http_Auth_Timeout     		= SysAction_Begin + 6;

	public static final int SysMsg_Sip_Auth_Suc          		= SysAction_Begin + 7;
	public static final int SysMsg_Sip_Auth_Failed       		= SysAction_Begin + 8;
	public static final int SysMsg_Sip_Auth_Timeout      		= SysAction_Begin + 9;

	public static final int SysMsg_Publish_Suc    				= SysAction_Begin + 10;
	public static final int SysMsg_Publish_Failed  				= SysAction_Begin + 11;
	public static final int SysMsg_Publish_Timeout   			= SysAction_Begin + 12;
	public static final int SysMsg_Publish_Unauthorized  		= SysAction_Begin + 13;
	public static final int SysMsg_Logout_Suc                   = SysAction_Begin + 14;

	public static String sysActionTag(int type) {
		String tag="unknown type = " + type;
		switch (type)
		{
			case SysAction_HttpGet:
				tag = "SysAction_HttpGet";
				break;
			case SysAction_HttpAuth:
				tag = "SysAction_HttpAuth";
				break;
			case SysAction_SipAuth:
				tag = "SysAction_SipAuth";
				break;
			case SysAction_Auth:
				tag = "SysAction_Auth";
				break;
			case SysAction_Clear_Init:
				tag = "SysAction_Clear_Init";
				break;
			case SysAction_Publish:
				tag = "SysAction_Publish";
				break;
			default:
				break;
		}
		return tag;
	}

	public static String sysMsgTag(int msg) {
		String tag="unknown + msg = " + msg ;
		switch (msg)
		{
			case SysMsg_Svr_Stop:
				tag = "SysMsg_Svr_Stop";
				break;
			case SysMsg_Svr_Start:
				tag = "SysMsg_Svr_Start";
				break;
			case SysMsg_Http_Get_Suc:
				tag = "SysMsg_Http_Get_Suc";
				break;
			case SysMsg_Http_Get_Failed:
				tag = "SysMsg_Http_Get_Failed";
				break;
			case SysMsg_Http_Get_Timeout:
				tag = "SysMsg_Http_Get_Timeout";
				break;
			case SysMsg_Http_Auth_Suc:
				tag = "SysMsg_Http_Auth_Suc";
				break;
			case SysMsg_Http_Auth_Failed:
				tag = "SysMsg_Http_Auth_Failed";
				break;
			case SysMsg_Http_Auth_Timeout:
				tag = "SysMsg_Http_Auth_Timeout";
				break;
			case SysMsg_Sip_Auth_Suc:
				tag = "SysMsg_Sip_Auth_Suc";
				break;
			case SysMsg_Sip_Auth_Failed:
				tag = "SysMsg_Sip_Auth_Failed";
				break;
			case SysMsg_Sip_Auth_Timeout:
				tag = "SysMsg_Sip_Auth_Timeout";
				break;
			case SysMsg_Publish_Unauthorized:
				tag = "SysMsg_Publish_Unauthorized";
			case SysMsg_Logout_Suc:
				tag = "SysMsg_Logout";
				break;
			default:
				break;
		}
		return tag;
	}


}
